<div id="slider_left">
    <div id="featured" >
	<ul class="ui-tabs-nav">
            <?php
            $j = 1;
            foreach ($blog_news_slider as $blog_new_slider): 
            
            if($j == 1){
                echo '<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-'.$j.'">';
            }
            else{
                echo '<li class="ui-tabs-nav-item" id="nav-fragment-'.$j.'">';
            }
            
            echo '<a href="#fragment-'.$j.'">';
            
            foreach ($blog_new_slider->getMediums(1) as $new_medium) {                    
                    echo '<img width="60" height="50" src="'.$new_medium->getFolder().'/'.$new_medium->getUrl().'" alt="'.$blog_new_slider->getTitle().'" title="'.$blog_new_slider->getTitle().'" />';
            }
            
            echo '<span>'.$blog_new_slider->getTitle().'</span></a></li>';
            
            $j++;
            
            endforeach; ?>	    
	</ul>
        
        <?php
        $j = 1;
        foreach ($blog_news_slider as $blog_new_slider): 
            
           if($j==1){ 
                echo '<div id="fragment-'.$j.'" class="ui-tabs-panel" style="">';
                
           }
           else{
                echo '<div id="fragment-'.$j.'" class="ui-tabs-panel ui-tabs-hide" style="">';
           }
           
            
           $j++;
           
           foreach ($blog_new_slider->getMediums(1) as $new_medium) {                    
                    echo '<img width="400" height="250" src="'.$new_medium->getFolder().'/'.$new_medium->getUrl().'" alt="'.$blog_new_slider->getTitle().'" title="'.$blog_new_slider->getTitle().'"/>';
            } 
        
         ?>
		
		<div class="info">
		<h2><?php echo '<a href="'.url_for('new_show_user', $blog_new_slider).'" >'.$blog_new_slider->getTitle().'</a></h2>'; ?>
		<p><?php echo $blog_new_slider->getSummary(ESC_RAW) ?>....<a href="<?php echo url_for('new_show_user', $blog_new_slider) ?>" >Lea más</a></p>
		</div>
            </div>
        <?php endforeach; ?>  
</div>
</div>
<div id="slider_right">
    <div class="fb-like-box" data-href="http://www.facebook.com/notihoy.com.ar" data-width="300" data-show-faces="true" data-stream="false" data-header="true"></div>
    
</div>

<div class="clearer"></div>

<div class="main" id="main-three-columns">

			<!-- first Column (News)-->

			<div class="left" id="main-left">
                                <?php for ($i=0; $i <= (sfConfig::get('app_news_index') / 2) - 1 ;$i++){
                                    $blog_new = $blog_news[$i];
                                ?>
				<div class="post">
                                    <?php 
                                    if($blog_new != ''){                                        
                                        echo '<div class="category">';
                                        echo link_to($blog_new->getBlogCategory(), 'category/show?id='.$blog_new->getCategory_id().'&name_slug='.$blog_new->getBlogCategory());
                                        echo '</div>';
                                    }                                    
                                    ?>
                                    <div class="post-title"><h3 style="display:inline"><a href="<?php echo url_for('new_show_user', $blog_new) ?>"><?php echo $blog_new->getTitle()?></a></h3></div>					
					<div class="post-body">
						<p><a href="<?php echo url_for('new_show_user', $blog_new); ?>">
                                                <?php
                                                foreach ($blog_new->getMediums(1) as $new_medium) {  
                                                echo '<img width="315" height="220" src="'.$new_medium->getFolder().'/'.$new_medium->getUrl().'" alt="'.$blog_new->getTitle().'" class="bordered" title="'.$blog_new->getTitle().'"/>';
                                                }
                                                if(count($blog_new->getMediums(1)) == 0){
                                                    echo '<img width="315" height="220" class="bordered"  src="/images/notfound.jpg"  alt="'.$blog_new->getTitle().'" title="'.$blog_new->getTitle().'"/>';

                                                }
                                                ?>
                                                </a></p>
                                           <p><?php echo $blog_new->getSummary(ESC_RAW); ?></p>
                                           <div class="fb-like" data-href="<?php echo url_for('new_show_user', $blog_new,true); ?>" 
                                         data-send="false" 
                                         data-width="200" 
                                         data-show-faces="false"
                                         layout="button_count">
                                        
                                            </div>
					</div>				
				</div>
				<!--end of post -->                                 
				<div class="content-separator"></div>				
                                <?php }; ?>			
			</div>

			<!-- Second Column (News)-->

			<div class="left" id="main-left" style="margin-left: 17px">
                            <?php for ($i = (sfConfig::get('app_news_index') / 2); $i<= (sfConfig::get('app_news_index') - 1);$i++){
                                    $blog_new = $blog_news[$i];
                                ?>
				<div class="post">
                                    
                                    <?php 
                                    if($blog_new != ''){                                        
                                        echo '<div class="category">';
                                        echo link_to($blog_new->getBlogCategory(), 'category/show?id='.$blog_new->getCategory_id().'&name_slug='.$blog_new->getBlogCategory());
                                        echo '</div>';
                                    }                                    
                                    ?>                                    
                                    <div class="post-title"><h3><a href="<?php echo url_for('new_show_user', $blog_new) ?>"><?php echo $blog_new->getTitle(); ?></a></h3></div>
                                    <div class="post-body">
                                        <p><a href="<?php echo url_for('new_show_user', $blog_new); ?>">
                                        <?php
                                                foreach ($blog_new->getMediums(1) as $new_medium) {  
                                                    echo '<img width="315" height="220" src="'.$new_medium->getFolder().'/'.$new_medium->getUrl().'" class="bordered"  alt="'.$blog_new->getTitle().'" title="'.$blog_new->getTitle().'" />';
                                                }
                                                if(count($blog_new->getMediums(1)) == 0){
                                                    echo '<img width="315" height="220"   class="bordered"  src="/images/notfound.jpg" alt="'.$blog_new->getTitle().'" title="'.$blog_new->getTitle().'"/>';
                                                }
                                                ?>
                                        </a></p>
					<p><?php echo $blog_new->getSummary(ESC_RAW) ?></p>
                                        <div class="fb-like" data-href="<?php echo url_for('new_show_user', $blog_new,true); ?>" 
                                         data-send="false" 
                                         data-width="200" 
                                         data-show-faces="false"
                                         layout="button_count">
                                        
                                        </div>
                                    </div>
				</div>
				<div class="content-separator"></div>
                             <?php }; ?>                                			
			</div>

			<!-- Third Column (Advertisements)-->

			<div class="right sidebar" id="sidebar-2" style="margin-top: 26px">			

				<?php include_partial('new/most', array('blog_news_most' => $blog_news_most)) ?>
                                <?php include_partial('new/most_week', array('blog_news_most_week' => $blog_news_most_week)) ?>

				

			</div>

			<div class="clearer">&nbsp;</div>

</div>
